2. Parent directory = most local directory. This is an initialization needed before loop entry. It makes sense if you consider the most local directory the parent directory of the file in question.
3. Put directory names in "directoryName"
4. Prepare parameters to be passed in call to PBGetCatInfo();
5. Set the block's DrDirID to that of its parent. This is how we travel up the directory tree.
6. Get catalog information for this block. In our case, the only info we use is the string at ioNamePtr (directoryName) and ioDrParID.
7. Append ':' onto the new directory name & increment string length byte directoryName will be of the form "DirName:"
8. Convert Pascal --> C string format
9. Append the lower part of the path onto the new directory name. fullPathName will be of the form "DirName2:DirName1:DirName0:"
10. Make a copy of directoryName in fullPathName since directoryName will be overwritten on next pass through PBGetCatInfo
11. Stop when the highest level directory (the volume) has been reached
*/
/*
PathNameFromWD() puts the full pathname of the HFS working directory "vRefNum" into "pathName".
It does this by calling PBGetWDInfo to get the VRefNum and DirID of the real directory. It then calls PathNameFromDirID, and returns its result.